package com.ruoyi.common.enums;

/**
 * 榴莲出行地点类型枚举
 *
 * @author ruoyi
 */
public enum DurianRedisKeysType {

    /**
     * 地点
     */
    ADDRESS("0", "geo:address"),

    /**
     * 地图中暴露的订单地图
     */
    PERSON("1", "geo:person"),

    /**
     * 车
     */
    DRIVER("2", "driver:"),

    /**
     * 乘客
     */
    PASSENGER("3", "passenger:"),

    /**
     * 行程途中订单地图
     */
    GEO_ORDER("4", "geo:order:"),

    /**
     * 行程途中节点(包含开始节点，结束节点)
     */
    MIDWAY("5", "order:midway:"),

    /**
     * 司机接单hash
     */
    DRIVER_ORDER("6", "DRIVER_ORDER"),

    /**
     * 优惠券
     */
    COUPON("7", "coupon:"),

    /**
     * 订单
     */
    ORDER("8", "order:"),

    /**
     * 司机和乘客之间发送消息
     */
    DRIVER_TO_USER("9","driver_to_user:");


    private final String type;
    private final String key;

    DurianRedisKeysType(String type, String key) {
        this.type = type;
        this.key = key;
    }

    public String getType() {
        return type;
    }

    public String getKey() {
        return key;
    }

}
